You can remove the unwanted modification with it.
If you are using a tablet that supports eraser, it will be much more convenient. Photogather supports this function of hardware. When you turn the pen to the side of eraser, the painting tool immediately switches to the eraser.